﻿using System;
using System.IO;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace C7
{
    class InkHelper
    {
        public static double StrokeSize
        {
            get;
            set;
        }

        public static SolidColorBrush StrokeBrush
        {
            get;
            set;
        }

        public static InkCanvasEditingMode EditingMode
        {
            get;
            set;
        }

        public static MemoireModule MainWindow
        {
            get;
            set;
        }

        public static string SaveFile
        {
            get;
            set;
        }

        public static void ProcessDirectory(string p)
        {
            SaveFile = p + "\\Drawing.ink";

            if (Directory.Exists(p))
            {
                if (File.Exists(SaveFile))
                {
                    // Yippee!
                }
                else
                {
                    File.Create(SaveFile);
                }
            }
            else
            {
                Directory.CreateDirectory(p);
                File.Create(SaveFile);
            }
        }
    }
}
